<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>定制化报告 | Ranorex Studio用户手册</title>
    <meta name="generator" content="VuePress 1.8.0">
    <link rel="icon" href="/ranorex/img/favicon.ico">
    <script data-ad-client="ca-pub-7828333725993554" async="async" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <meta name="description" content="用户指南的第一章将引导您完成创建第一个自动化测试用例的过程。了解如何在不编码的情况下自动执行测试、验证条目、查看测试报告等。后面的章节涵盖高级主题，例如使用 Selenium WebDriver 进行跨浏览器测试和为移动应用程序测试准备设备。">
    <meta name="keywords" content="用户指南的第一章将引导您完成创建第一个自动化测试用例的过程。了解如何在不编码的情况下自动执行测试、验证条目、查看测试报告等。后面的章节涵盖高级主题，例如使用 Selenium WebDriver 进行跨浏览器测试和为移动应用程序测试准备设备。">
    <meta name="baidu-site-verification" content="7F55weZDDc">
    <meta name="theme-color" content="#11a8cd">
    
    <link rel="preload" href="/ranorex/assets/css/0.styles.4f9f6236.css" as="style"><link rel="preload" href="/ranorex/assets/js/app.24b7eaa5.js" as="script"><link rel="preload" href="/ranorex/assets/js/2.ec9fdd2b.js" as="script"><link rel="preload" href="/ranorex/assets/js/56.e54f166f.js" as="script"><link rel="prefetch" href="/ranorex/assets/js/10.10740124.js"><link rel="prefetch" href="/ranorex/assets/js/100.e7028cb5.js"><link rel="prefetch" href="/ranorex/assets/js/101.57840c4c.js"><link rel="prefetch" href="/ranorex/assets/js/102.f88ac37b.js"><link rel="prefetch" href="/ranorex/assets/js/103.3f4ef0af.js"><link rel="prefetch" href="/ranorex/assets/js/104.1c3987fc.js"><link rel="prefetch" href="/ranorex/assets/js/105.39bd6f16.js"><link rel="prefetch" href="/ranorex/assets/js/106.6d99777c.js"><link rel="prefetch" href="/ranorex/assets/js/107.a772dfce.js"><link rel="prefetch" href="/ranorex/assets/js/108.1f6106fd.js"><link rel="prefetch" href="/ranorex/assets/js/109.61465bce.js"><link rel="prefetch" href="/ranorex/assets/js/11.15aa2ac8.js"><link rel="prefetch" href="/ranorex/assets/js/110.87f08865.js"><link rel="prefetch" href="/ranorex/assets/js/111.6de4977a.js"><link rel="prefetch" href="/ranorex/assets/js/112.ac81b438.js"><link rel="prefetch" href="/ranorex/assets/js/113.e4324abb.js"><link rel="prefetch" href="/ranorex/assets/js/114.76da90e6.js"><link rel="prefetch" href="/ranorex/assets/js/115.b0302cf5.js"><link rel="prefetch" href="/ranorex/assets/js/116.dc9013d8.js"><link rel="prefetch" href="/ranorex/assets/js/117.5650909e.js"><link rel="prefetch" href="/ranorex/assets/js/118.83c3ad11.js"><link rel="prefetch" href="/ranorex/assets/js/119.99ea8a2f.js"><link rel="prefetch" href="/ranorex/assets/js/12.f887e0d3.js"><link rel="prefetch" href="/ranorex/assets/js/120.5158a9fc.js"><link rel="prefetch" href="/ranorex/assets/js/121.cd6389de.js"><link rel="prefetch" href="/ranorex/assets/js/122.30b6e23a.js"><link rel="prefetch" href="/ranorex/assets/js/123.14ef94d2.js"><link rel="prefetch" href="/ranorex/assets/js/124.774c039f.js"><link rel="prefetch" href="/ranorex/assets/js/125.ec98d72a.js"><link rel="prefetch" href="/ranorex/assets/js/126.a5374d41.js"><link rel="prefetch" href="/ranorex/assets/js/127.6bb71a7f.js"><link rel="prefetch" href="/ranorex/assets/js/128.dddf9e5d.js"><link rel="prefetch" href="/ranorex/assets/js/129.803e1198.js"><link rel="prefetch" href="/ranorex/assets/js/13.98375c72.js"><link rel="prefetch" href="/ranorex/assets/js/130.7fe218d8.js"><link rel="prefetch" href="/ranorex/assets/js/131.ccdb53c7.js"><link rel="prefetch" href="/ranorex/assets/js/132.f059a1a9.js"><link rel="prefetch" href="/ranorex/assets/js/133.4108c727.js"><link rel="prefetch" href="/ranorex/assets/js/134.9d680a15.js"><link rel="prefetch" href="/ranorex/assets/js/135.6a9d4859.js"><link rel="prefetch" href="/ranorex/assets/js/136.2198a58d.js"><link rel="prefetch" href="/ranorex/assets/js/137.ee7cb289.js"><link rel="prefetch" href="/ranorex/assets/js/138.26c7e792.js"><link rel="prefetch" href="/ranorex/assets/js/139.eeb24972.js"><link rel="prefetch" href="/ranorex/assets/js/14.45cccdbd.js"><link rel="prefetch" href="/ranorex/assets/js/140.7ec1802a.js"><link rel="prefetch" href="/ranorex/assets/js/141.fb7a23f0.js"><link rel="prefetch" href="/ranorex/assets/js/142.6749eff4.js"><link rel="prefetch" href="/ranorex/assets/js/143.431594af.js"><link rel="prefetch" href="/ranorex/assets/js/144.a2f5ce52.js"><link rel="prefetch" href="/ranorex/assets/js/145.0601585d.js"><link rel="prefetch" href="/ranorex/assets/js/146.16feb8bc.js"><link rel="prefetch" href="/ranorex/assets/js/147.5053e695.js"><link rel="prefetch" href="/ranorex/assets/js/148.a353c0d0.js"><link rel="prefetch" href="/ranorex/assets/js/149.31c0ff28.js"><link rel="prefetch" href="/ranorex/assets/js/15.f23b2dea.js"><link rel="prefetch" href="/ranorex/assets/js/150.6542abfd.js"><link rel="prefetch" href="/ranorex/assets/js/151.43e948e3.js"><link rel="prefetch" href="/ranorex/assets/js/152.dd6cabb1.js"><link rel="prefetch" href="/ranorex/assets/js/153.f014da37.js"><link rel="prefetch" href="/ranorex/assets/js/154.6ee45ca5.js"><link rel="prefetch" href="/ranorex/assets/js/155.6ba5415a.js"><link rel="prefetch" href="/ranorex/assets/js/156.e601c1e5.js"><link rel="prefetch" href="/ranorex/assets/js/157.407e013c.js"><link rel="prefetch" href="/ranorex/assets/js/158.0bb7c774.js"><link rel="prefetch" href="/ranorex/assets/js/159.17154eef.js"><link rel="prefetch" href="/ranorex/assets/js/16.5154513b.js"><link rel="prefetch" href="/ranorex/assets/js/160.9d4cb6ba.js"><link rel="prefetch" href="/ranorex/assets/js/161.a53a87be.js"><link rel="prefetch" href="/ranorex/assets/js/162.54b97f63.js"><link rel="prefetch" href="/ranorex/assets/js/163.546cbc2d.js"><link rel="prefetch" href="/ranorex/assets/js/164.7bc339ce.js"><link rel="prefetch" href="/ranorex/assets/js/165.67d4304a.js"><link rel="prefetch" href="/ranorex/assets/js/166.7c1be565.js"><link rel="prefetch" href="/ranorex/assets/js/167.bd0167b7.js"><link rel="prefetch" href="/ranorex/assets/js/168.1aa7878a.js"><link rel="prefetch" href="/ranorex/assets/js/169.d90b4e9c.js"><link rel="prefetch" href="/ranorex/assets/js/17.5fcd13ca.js"><link rel="prefetch" href="/ranorex/assets/js/170.cb5db4fb.js"><link rel="prefetch" href="/ranorex/assets/js/171.b8147650.js"><link rel="prefetch" href="/ranorex/assets/js/172.53f22d79.js"><link rel="prefetch" href="/ranorex/assets/js/173.0e60c801.js"><link rel="prefetch" href="/ranorex/assets/js/174.8c29f5a4.js"><link rel="prefetch" href="/ranorex/assets/js/175.caa398e0.js"><link rel="prefetch" href="/ranorex/assets/js/176.36e20920.js"><link rel="prefetch" href="/ranorex/assets/js/177.1b8ca17e.js"><link rel="prefetch" href="/ranorex/assets/js/178.686cd676.js"><link rel="prefetch" href="/ranorex/assets/js/179.62ed8882.js"><link rel="prefetch" href="/ranorex/assets/js/18.3410087d.js"><link rel="prefetch" href="/ranorex/assets/js/180.a0a2165c.js"><link rel="prefetch" href="/ranorex/assets/js/181.8af8faa3.js"><link rel="prefetch" href="/ranorex/assets/js/182.dc2e7167.js"><link rel="prefetch" href="/ranorex/assets/js/183.ef7688da.js"><link rel="prefetch" href="/ranorex/assets/js/184.5707a5ec.js"><link rel="prefetch" href="/ranorex/assets/js/185.72e933f8.js"><link rel="prefetch" href="/ranorex/assets/js/186.ac3e0f9e.js"><link rel="prefetch" href="/ranorex/assets/js/187.703ef8ea.js"><link rel="prefetch" href="/ranorex/assets/js/188.d04772eb.js"><link rel="prefetch" href="/ranorex/assets/js/189.549c54cf.js"><link rel="prefetch" href="/ranorex/assets/js/19.f5a747d2.js"><link rel="prefetch" href="/ranorex/assets/js/190.a7fb60b7.js"><link rel="prefetch" href="/ranorex/assets/js/191.0b9e402d.js"><link rel="prefetch" href="/ranorex/assets/js/192.db701f56.js"><link rel="prefetch" href="/ranorex/assets/js/193.86245113.js"><link rel="prefetch" href="/ranorex/assets/js/194.26dcdaa9.js"><link rel="prefetch" href="/ranorex/assets/js/195.341ac6b9.js"><link rel="prefetch" href="/ranorex/assets/js/196.e12e179b.js"><link rel="prefetch" href="/ranorex/assets/js/197.604689a4.js"><link rel="prefetch" href="/ranorex/assets/js/198.2e49a4fc.js"><link rel="prefetch" href="/ranorex/assets/js/199.a1811557.js"><link rel="prefetch" href="/ranorex/assets/js/20.fcd6c62f.js"><link rel="prefetch" href="/ranorex/assets/js/200.bbfc3813.js"><link rel="prefetch" href="/ranorex/assets/js/201.dfbdd0b3.js"><link rel="prefetch" href="/ranorex/assets/js/202.4d01f6a5.js"><link rel="prefetch" href="/ranorex/assets/js/203.2fc1b32a.js"><link rel="prefetch" href="/ranorex/assets/js/204.a18e0686.js"><link rel="prefetch" href="/ranorex/assets/js/205.8559eb21.js"><link rel="prefetch" href="/ranorex/assets/js/206.febc4af9.js"><link rel="prefetch" href="/ranorex/assets/js/207.3824dcf1.js"><link rel="prefetch" href="/ranorex/assets/js/208.60a33728.js"><link rel="prefetch" href="/ranorex/assets/js/209.d933f506.js"><link rel="prefetch" href="/ranorex/assets/js/21.cf8fbb66.js"><link rel="prefetch" href="/ranorex/assets/js/210.8f377e06.js"><link rel="prefetch" href="/ranorex/assets/js/211.26f8be02.js"><link rel="prefetch" href="/ranorex/assets/js/212.4a64d44c.js"><link rel="prefetch" href="/ranorex/assets/js/213.fdeb4f41.js"><link rel="prefetch" href="/ranorex/assets/js/214.e34e9a0b.js"><link rel="prefetch" href="/ranorex/assets/js/215.ce7a5ee6.js"><link rel="prefetch" href="/ranorex/assets/js/216.660d864f.js"><link rel="prefetch" href="/ranorex/assets/js/217.b9b06dc0.js"><link rel="prefetch" href="/ranorex/assets/js/218.1c9eb327.js"><link rel="prefetch" href="/ranorex/assets/js/219.9f170a55.js"><link rel="prefetch" href="/ranorex/assets/js/22.148be82a.js"><link rel="prefetch" href="/ranorex/assets/js/220.15dc816e.js"><link rel="prefetch" href="/ranorex/assets/js/221.80b3442a.js"><link rel="prefetch" href="/ranorex/assets/js/222.704d161c.js"><link rel="prefetch" href="/ranorex/assets/js/223.1145a930.js"><link rel="prefetch" href="/ranorex/assets/js/224.f1da1ddc.js"><link rel="prefetch" href="/ranorex/assets/js/225.fa6a9452.js"><link rel="prefetch" href="/ranorex/assets/js/226.18a3865a.js"><link rel="prefetch" href="/ranorex/assets/js/23.cc718ca8.js"><link rel="prefetch" href="/ranorex/assets/js/24.86da407f.js"><link rel="prefetch" href="/ranorex/assets/js/25.f55794a8.js"><link rel="prefetch" href="/ranorex/assets/js/26.034daa9c.js"><link rel="prefetch" href="/ranorex/assets/js/27.2fbbd462.js"><link rel="prefetch" href="/ranorex/assets/js/28.211c41f6.js"><link rel="prefetch" href="/ranorex/assets/js/29.04c0999c.js"><link rel="prefetch" href="/ranorex/assets/js/3.ae597d9c.js"><link rel="prefetch" href="/ranorex/assets/js/30.393ae7bc.js"><link rel="prefetch" href="/ranorex/assets/js/31.c8ad9771.js"><link rel="prefetch" href="/ranorex/assets/js/32.77f25c7a.js"><link rel="prefetch" href="/ranorex/assets/js/33.893cd8eb.js"><link rel="prefetch" href="/ranorex/assets/js/34.ad372005.js"><link rel="prefetch" href="/ranorex/assets/js/35.8b8dfbb2.js"><link rel="prefetch" href="/ranorex/assets/js/36.d4e0c135.js"><link rel="prefetch" href="/ranorex/assets/js/37.616da736.js"><link rel="prefetch" href="/ranorex/assets/js/38.2432a079.js"><link rel="prefetch" href="/ranorex/assets/js/39.8b943467.js"><link rel="prefetch" href="/ranorex/assets/js/4.22fd3e1a.js"><link rel="prefetch" href="/ranorex/assets/js/40.e8eaccc8.js"><link rel="prefetch" href="/ranorex/assets/js/41.76a9eede.js"><link rel="prefetch" href="/ranorex/assets/js/42.89ea171c.js"><link rel="prefetch" href="/ranorex/assets/js/43.f856cbbb.js"><link rel="prefetch" href="/ranorex/assets/js/44.58030fb1.js"><link rel="prefetch" href="/ranorex/assets/js/45.3d09c2fa.js"><link rel="prefetch" href="/ranorex/assets/js/46.b245fc56.js"><link rel="prefetch" href="/ranorex/assets/js/47.bc3b2fa7.js"><link rel="prefetch" href="/ranorex/assets/js/48.b46f224f.js"><link rel="prefetch" href="/ranorex/assets/js/49.4cb3377b.js"><link rel="prefetch" href="/ranorex/assets/js/5.02a8399a.js"><link rel="prefetch" href="/ranorex/assets/js/50.202bba60.js"><link rel="prefetch" href="/ranorex/assets/js/51.70007468.js"><link rel="prefetch" href="/ranorex/assets/js/52.cb4cc59e.js"><link rel="prefetch" href="/ranorex/assets/js/53.8eb695b2.js"><link rel="prefetch" href="/ranorex/assets/js/54.f840fad6.js"><link rel="prefetch" href="/ranorex/assets/js/55.3a7ca993.js"><link rel="prefetch" href="/ranorex/assets/js/57.cc924439.js"><link rel="prefetch" href="/ranorex/assets/js/58.1b6a4239.js"><link rel="prefetch" href="/ranorex/assets/js/59.6e538365.js"><link rel="prefetch" href="/ranorex/assets/js/6.4754e26a.js"><link rel="prefetch" href="/ranorex/assets/js/60.24be2f8a.js"><link rel="prefetch" href="/ranorex/assets/js/61.37707aa9.js"><link rel="prefetch" href="/ranorex/assets/js/62.3f142075.js"><link rel="prefetch" href="/ranorex/assets/js/63.ffca709a.js"><link rel="prefetch" href="/ranorex/assets/js/64.71472536.js"><link rel="prefetch" href="/ranorex/assets/js/65.5a22e1db.js"><link rel="prefetch" href="/ranorex/assets/js/66.12137ec5.js"><link rel="prefetch" href="/ranorex/assets/js/67.216d94c5.js"><link rel="prefetch" href="/ranorex/assets/js/68.b547be06.js"><link rel="prefetch" href="/ranorex/assets/js/69.500ef0be.js"><link rel="prefetch" href="/ranorex/assets/js/7.8d47de9d.js"><link rel="prefetch" href="/ranorex/assets/js/70.17ab2354.js"><link rel="prefetch" href="/ranorex/assets/js/71.becd4c9d.js"><link rel="prefetch" href="/ranorex/assets/js/72.0a81c3ac.js"><link rel="prefetch" href="/ranorex/assets/js/73.c3f7b9bc.js"><link rel="prefetch" href="/ranorex/assets/js/74.489b5d01.js"><link rel="prefetch" href="/ranorex/assets/js/75.15b80f90.js"><link rel="prefetch" href="/ranorex/assets/js/76.37e86e91.js"><link rel="prefetch" href="/ranorex/assets/js/77.8a96a11b.js"><link rel="prefetch" href="/ranorex/assets/js/78.1089236e.js"><link rel="prefetch" href="/ranorex/assets/js/79.2d89654c.js"><link rel="prefetch" href="/ranorex/assets/js/8.197778c9.js"><link rel="prefetch" href="/ranorex/assets/js/80.6c0ca93e.js"><link rel="prefetch" href="/ranorex/assets/js/81.c09d0fd2.js"><link rel="prefetch" href="/ranorex/assets/js/82.2cf30b53.js"><link rel="prefetch" href="/ranorex/assets/js/83.6a836fd5.js"><link rel="prefetch" href="/ranorex/assets/js/84.f56aeffe.js"><link rel="prefetch" href="/ranorex/assets/js/85.fa5f1544.js"><link rel="prefetch" href="/ranorex/assets/js/86.f5d69b57.js"><link rel="prefetch" href="/ranorex/assets/js/87.5da46a4d.js"><link rel="prefetch" href="/ranorex/assets/js/88.2d708653.js"><link rel="prefetch" href="/ranorex/assets/js/89.cd2fa46c.js"><link rel="prefetch" href="/ranorex/assets/js/9.9807028d.js"><link rel="prefetch" href="/ranorex/assets/js/90.33ee88ae.js"><link rel="prefetch" href="/ranorex/assets/js/91.f157a5e7.js"><link rel="prefetch" href="/ranorex/assets/js/92.5652bd0e.js"><link rel="prefetch" href="/ranorex/assets/js/93.4adefe5e.js"><link rel="prefetch" href="/ranorex/assets/js/94.18953313.js"><link rel="prefetch" href="/ranorex/assets/js/95.87b602b5.js"><link rel="prefetch" href="/ranorex/assets/js/96.8eb960e1.js"><link rel="prefetch" href="/ranorex/assets/js/97.19ab9295.js"><link rel="prefetch" href="/ranorex/assets/js/98.3782e119.js"><link rel="prefetch" href="/ranorex/assets/js/99.23b63326.js">
    <link rel="stylesheet" href="/ranorex/assets/css/0.styles.4f9f6236.css">
  </head>
  <body class="theme-mode-light">
    <div id="app" data-server-rendered="true"><div class="theme-container sidebar-open have-rightmenu"><header class="navbar blur"><div title="目录" class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/ranorex/" class="home-link router-link-active"><img src="/ranorex/img/RX-logo.png" alt="Ranorex Studio用户手册" class="logo"> <span class="site-name can-hide">Ranorex Studio用户手册</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/ranorex/" class="nav-link">首页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="基础" class="dropdown-title"><a href="/ranorex/pages/978dd7/" class="link-title">基础</a> <span class="title" style="display:none;">基础</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/db051d/" class="nav-link">在20分钟内了解 Ranorex</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d5a062/" class="nav-link">Ranorex Studio</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d8d817/" class="nav-link">Ranorex 录制器</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/1f8583/" class="nav-link">测试套件</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/3ff037/" class="nav-link">动作</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/980f3d/" class="nav-link">控件库</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/2c14f7/" class="nav-link">验证测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/8b8105/" class="nav-link">白名单</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/894a89/" class="nav-link">报告</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="高级" class="dropdown-title"><a href="/ranorex/pages/11401f/" class="link-title">高级</a> <span class="title" style="display:none;">高级</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/554573/" class="nav-link">数据驱动测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/331ecc/" class="nav-link">追踪UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/6943ae/" class="nav-link">Ranorex Spy</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/134d22/" class="nav-link">UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/686444/" class="nav-link">RanoreXPath</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/64711f/" class="nav-link">基于图像的自动化</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/005bb9/" class="nav-link">维护模式</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/11012a/" class="nav-link">性能跟踪</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="专家" class="dropdown-title"><a href="/ranorex/pages/9af963/" class="link-title">专家</a> <span class="title" style="display:none;">专家</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/2f0192/" class="nav-link">映射动态UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/ecebd0/" class="nav-link">RanoreXPath 中的正则表达式</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/847ee6/" class="nav-link">用户代码库</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/b31e73/" class="nav-link">代码模块</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/811ea3/" class="nav-link">Ranorex Studio 集成开发环境</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/f87d8c/" class="nav-link">Ranorex 自动化助手</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="网页和移动测试" class="dropdown-title"><a href="/ranorex/pages/7ccd5d/" class="link-title">网页和移动测试</a> <span class="title" style="display:none;">网页和移动测试</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/d74538/" class="nav-link">Web测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/645c60/" class="nav-link">端点</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/6d8643/" class="nav-link">移动测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/dfc2b0/" class="nav-link">高级移动测试</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="接口和连接" class="dropdown-title"><a href="/ranorex/pages/89b55d/" class="link-title">接口和连接</a> <span class="title" style="display:none;">接口和连接</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/b79789/" class="nav-link">Ranorex仪器向导</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/43beb2/" class="nav-link">技术仪器</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/7bcce0/" class="nav-link">源代码控制和修订控制</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/7d74b6/" class="nav-link">XCOPY 部署</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/18df29/" class="nav-link">持续集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/88ee43/" class="nav-link">TestRail 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/9c9cdb/" class="nav-link">Applitools Eyes 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/f9f2a2/" class="nav-link">远程桌面的 Ranorex</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/1121bd/" class="nav-link">Visual Studio 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/fc83cd/" class="nav-link">Selenium Webdriver 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/38db78/" class="nav-link">插件</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="系统详细信息" class="dropdown-title"><a href="/ranorex/pages/92d4ae/" class="link-title">系统详细信息</a> <span class="title" style="display:none;">系统详细信息</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/b40b84/" class="nav-link">证书</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d75d8f/" class="nav-link">设置和配置</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/0f08c7/" class="nav-link">系统要求</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/86b798/" class="nav-link">64位平台</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/31b776/" class="nav-link">静默安装</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="实践应用主题" class="dropdown-title"><a href="/ranorex/pages/74e52a/" class="link-title">实践应用主题</a> <span class="title" style="display:none;">实践应用主题</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/5011c0/" class="nav-link">构建您的测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/83d6aa/" class="nav-link">常见问题的解决方案</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/8ea041/" class="nav-link">最佳实践</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/93ab6d/" class="nav-link">代码示例</a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <div class="sidebar-hover-trigger"></div> <aside class="sidebar" style="display:none;"><!----> <nav class="nav-links"><div class="nav-item"><a href="/ranorex/" class="nav-link">首页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="基础" class="dropdown-title"><a href="/ranorex/pages/978dd7/" class="link-title">基础</a> <span class="title" style="display:none;">基础</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/db051d/" class="nav-link">在20分钟内了解 Ranorex</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d5a062/" class="nav-link">Ranorex Studio</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d8d817/" class="nav-link">Ranorex 录制器</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/1f8583/" class="nav-link">测试套件</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/3ff037/" class="nav-link">动作</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/980f3d/" class="nav-link">控件库</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/2c14f7/" class="nav-link">验证测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/8b8105/" class="nav-link">白名单</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/894a89/" class="nav-link">报告</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="高级" class="dropdown-title"><a href="/ranorex/pages/11401f/" class="link-title">高级</a> <span class="title" style="display:none;">高级</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/554573/" class="nav-link">数据驱动测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/331ecc/" class="nav-link">追踪UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/6943ae/" class="nav-link">Ranorex Spy</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/134d22/" class="nav-link">UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/686444/" class="nav-link">RanoreXPath</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/64711f/" class="nav-link">基于图像的自动化</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/005bb9/" class="nav-link">维护模式</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/11012a/" class="nav-link">性能跟踪</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="专家" class="dropdown-title"><a href="/ranorex/pages/9af963/" class="link-title">专家</a> <span class="title" style="display:none;">专家</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/2f0192/" class="nav-link">映射动态UI元素</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/ecebd0/" class="nav-link">RanoreXPath 中的正则表达式</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/847ee6/" class="nav-link">用户代码库</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/b31e73/" class="nav-link">代码模块</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/811ea3/" class="nav-link">Ranorex Studio 集成开发环境</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/f87d8c/" class="nav-link">Ranorex 自动化助手</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="网页和移动测试" class="dropdown-title"><a href="/ranorex/pages/7ccd5d/" class="link-title">网页和移动测试</a> <span class="title" style="display:none;">网页和移动测试</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/d74538/" class="nav-link">Web测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/645c60/" class="nav-link">端点</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/6d8643/" class="nav-link">移动测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/dfc2b0/" class="nav-link">高级移动测试</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="接口和连接" class="dropdown-title"><a href="/ranorex/pages/89b55d/" class="link-title">接口和连接</a> <span class="title" style="display:none;">接口和连接</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/b79789/" class="nav-link">Ranorex仪器向导</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/43beb2/" class="nav-link">技术仪器</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/7bcce0/" class="nav-link">源代码控制和修订控制</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/7d74b6/" class="nav-link">XCOPY 部署</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/18df29/" class="nav-link">持续集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/88ee43/" class="nav-link">TestRail 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/9c9cdb/" class="nav-link">Applitools Eyes 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/f9f2a2/" class="nav-link">远程桌面的 Ranorex</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/1121bd/" class="nav-link">Visual Studio 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/fc83cd/" class="nav-link">Selenium Webdriver 集成</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/38db78/" class="nav-link">插件</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="系统详细信息" class="dropdown-title"><a href="/ranorex/pages/92d4ae/" class="link-title">系统详细信息</a> <span class="title" style="display:none;">系统详细信息</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/b40b84/" class="nav-link">证书</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/d75d8f/" class="nav-link">设置和配置</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/0f08c7/" class="nav-link">系统要求</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/86b798/" class="nav-link">64位平台</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/31b776/" class="nav-link">静默安装</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="实践应用主题" class="dropdown-title"><a href="/ranorex/pages/74e52a/" class="link-title">实践应用主题</a> <span class="title" style="display:none;">实践应用主题</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/ranorex/pages/5011c0/" class="nav-link">构建您的测试</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/83d6aa/" class="nav-link">常见问题的解决方案</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/8ea041/" class="nav-link">最佳实践</a></li><li class="dropdown-item"><!----> <a href="/ranorex/pages/93ab6d/" class="nav-link">代码示例</a></li></ul></div></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>在20分钟内了解Ranorex</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Ranorex Studio</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>Ranorex 录制器</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>测试套件</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>动作</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>控件库</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>测试验证</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>白名单</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>报告</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/ranorex/pages/894a89/" class="sidebar-link">介绍</a></li><li><a href="/ranorex/pages/63ffa8/" class="sidebar-link">动作和报告</a></li><li><a href="/ranorex/pages/65ed72/" class="sidebar-link">报告等级</a></li><li><a href="/ranorex/pages/6ba9cb/" class="sidebar-link">Ranorex标准报告</a></li><li><a href="/ranorex/pages/46ca5e/" aria-current="page" class="active sidebar-link">定制化报告</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#下载示例解决方案" class="sidebar-link">下载示例解决方案</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#从原始数据到报告" class="sidebar-link">从原始数据到报告</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#收集的测试数据" class="sidebar-link">收集的测试数据</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#css和xsl格式" class="sidebar-link">CSS和XSL格式</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#html报告文件" class="sidebar-link">HTML报告文件</a></li></ul></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#创建一个自定义报告模板" class="sidebar-link">创建一个自定义报告模板</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#结果" class="sidebar-link">结果</a></li></ul></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#多个自定义报告模板" class="sidebar-link">多个自定义报告模板</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#结果-2" class="sidebar-link">结果</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#重命名自定义报告模板" class="sidebar-link">重命名自定义报告模板</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#选择-重新应用报告模板" class="sidebar-link">选择/重新应用报告模板</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#重置到默认报告模板" class="sidebar-link">重置到默认报告模板</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#ranorex如何处理自定义模板" class="sidebar-link">Ranorex如何处理自定义模板</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#输出文件夹-bin-debug" class="sidebar-link">输出文件夹\bin\Debug\</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#流程摘要" class="sidebar-link">流程摘要</a></li></ul></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#在报告中包含外部文件" class="sidebar-link">在报告中包含外部文件</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#背景颜色和logo自定义" class="sidebar-link">背景颜色和logo自定义</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#logo" class="sidebar-link">logo</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#替代logo" class="sidebar-link">替代logo</a></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#结果-3" class="sidebar-link">结果</a></li></ul></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#用用户名替换计算机-端点" class="sidebar-link">用用户名替换计算机/端点</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#结果-4" class="sidebar-link">结果</a></li></ul></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#更改报告消息格式" class="sidebar-link">更改报告消息格式</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#结果-5" class="sidebar-link">结果</a></li></ul></li><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#从报告中删除信息" class="sidebar-link">从报告中删除信息</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/ranorex/pages/46ca5e/#结果-6" class="sidebar-link">结果</a></li></ul></li></ul></li><li><a href="/ranorex/pages/7cbc3f/" class="sidebar-link">复杂的自定义</a></li><li><a href="/ranorex/pages/c2560f/" class="sidebar-link">将报告转换为其他数据类型</a></li></ul></section></li></ul> <div class="sidebar-slot sidebar-slot-bottom"><!-- 正方形 -->
      <ins class="adsbygoogle"
          style="display:block"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="3508773082"
          data-ad-format="auto"
          data-full-width-responsive="true"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script></div></aside> <div><main class="page"><div class="theme-vdoing-wrapper "><div class="articleInfo-wrap" data-v-1cd794fe><div class="articleInfo" data-v-1cd794fe><ul class="breadcrumbs" data-v-1cd794fe><li data-v-1cd794fe><a href="/ranorex/" title="首页" class="iconfont icon-home router-link-active" data-v-1cd794fe></a></li> <li data-v-1cd794fe><a href="/ranorex/categories/?category=%E5%9F%BA%E7%A1%80" title="分类" data-v-1cd794fe>基础</a></li> <li data-v-1cd794fe><a href="/ranorex/categories/?category=%E6%8A%A5%E5%91%8A" title="分类" data-v-1cd794fe>报告</a></li> <!----></ul> <div class="info" data-v-1cd794fe><div title="作者" class="author iconfont icon-touxiang" data-v-1cd794fe><a href="https://github.com/taylortaurus" target="_blank" title="作者" class="beLink" data-v-1cd794fe>TaylorTaurus</a></div> <div title="创建时间" class="date iconfont icon-riqi" data-v-1cd794fe><a href="javascript:;" data-v-1cd794fe>2021-11-22</a></div> <!----></div></div></div> <!----> <div class="content-wrapper"><div class="right-menu-wrapper"><div class="right-menu-margin"><div class="right-menu-content"></div></div></div> <h1><img src="">
          定制化报告
        </h1> <div class="page-slot page-slot-top"><!-- 固定100% * 90px可显示，max-height:90px未见显示-->
     <ins class="adsbygoogle"
          style="display:inline-block;width:100%;max-height:90px"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="6625304284"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script></div> <div class="theme-vdoing-content content__default"><h1 id="译-定制化报告"><a href="#译-定制化报告" class="header-anchor">#</a> [译] 定制化报告</h1> <p><a href="https://www.ranorex.com/help/latest/ranorex-studio-fundamentals/reporting/report-customization/" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/OfficialPage-ClickMe-blue.svg?longCache=true&amp;style=flat-square" alt=""><span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p> <p><a href="https://github.com/taylortaurus" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/Translator-TaylorTaurus-42B983.svg?longCache=true&amp;style=flat-square" alt=""><span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a> <img src="https://img.shields.io/badge/TranslateTime-2018%E5%B9%B49%E6%9C%8825%E6%97%A5-green.svg?longCache=true&amp;style=flat-square" alt=""> <img src="https://img.shields.io/badge/UpdateTime-2019%E5%B9%B49%E6%9C%8810%E6%97%A5-green.svg?longCache=true&amp;style=flat-square" alt=""></p> <hr> <p>标准报告通常适用于大多数情况。 但是，为了满足个人需求，它是完全可定制的。 我们将选项分为两个章节，一个用于更简单的自定义，另一个用于更复杂的自定义。 在本章中，你将学习有关自定义的基础知识，主要是如何更改报告的外观，即添加自己的logo和更改模板。</p> <blockquote><p><strong>章节预览</strong><br>
有关涉及编码的更复杂的自定义，请参阅 &gt; Ranorex Studio 基础教程 &gt; 报告 &gt; 👉 <a href="/ranorex/pages/6ba9cb/">复杂自定义</a></p></blockquote> <p><strong>本章导视</strong></p> <ul><li><a href="#%E4%B8%8B%E8%BD%BD%E7%A4%BA%E4%BE%8B%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88">下载示例解决方案</a></li> <li><a href="#%E4%BB%8E%E5%8E%9F%E5%A7%8B%E6%95%B0%E6%8D%AE%E5%88%B0%E6%8A%A5%E5%91%8A">从原始数据到报告</a></li> <li><a href="#%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8A%A5%E5%91%8A%E6%A8%A1%E6%9D%BF">创建一个自定义报告模板</a></li> <li><a href="#%E5%A4%9A%E4%B8%AA%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8A%A5%E5%91%8A%E6%A8%A1%E6%9D%BF">多个自定义报告模板</a></li> <li><a href="#%E9%87%8D%E5%91%BD%E5%90%8D%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8A%A5%E5%91%8A%E6%A8%A1%E6%9D%BF">重命名自定义报告模板</a></li> <li><a href="#%E9%80%89%E6%8B%A9/%E9%87%8D%E6%96%B0%E5%BA%94%E7%94%A8%E6%8A%A5%E5%91%8A%E6%A8%A1%E6%9D%BF">选择/重新应用报告模板</a></li> <li><a href="#%E9%87%8D%E7%BD%AE%E5%88%B0%E9%BB%98%E8%AE%A4%E6%8A%A5%E5%91%8A%E6%A8%A1%E6%9D%BF">重置到默认报告模板</a></li> <li><a href="#Ranorex%E5%A6%82%E4%BD%95%E5%A4%84%E7%90%86%E8%87%AA%E5%AE%9A%E4%B9%89%E6%A8%A1%E6%9D%BF">Ranorex如何处理自定义模板</a></li> <li><a href="#%E5%9C%A8%E6%8A%A5%E5%91%8A%E4%B8%AD%E5%8C%85%E5%90%AB%E5%A4%96%E9%83%A8%E6%96%87%E4%BB%B6">在报告中包含外部文件</a></li> <li><a href="#%E8%83%8C%E6%99%AF%E9%A2%9C%E8%89%B2%E5%92%8Clogo%E8%87%AA%E5%AE%9A%E4%B9%89">背景颜色和logo自定义</a></li> <li><a href="#%E7%94%A8%E7%94%A8%E6%88%B7%E5%90%8D%E6%9B%BF%E6%8D%A2%E8%AE%A1%E7%AE%97%E6%9C%BA/%E7%AB%AF%E7%82%B9">用用户名替换计算机/端点</a></li> <li><a href="#%E6%9B%B4%E6%94%B9%E6%8A%A5%E5%91%8A%E6%B6%88%E6%81%AF%E6%A0%BC%E5%BC%8F">更改报告消息格式</a></li> <li><a href="#%E4%BB%8E%E6%8A%A5%E5%91%8A%E4%B8%AD%E5%88%A0%E9%99%A4%E4%BF%A1%E6%81%AF">从报告中删除信息</a></li></ul> <blockquote><p><strong>视频向导</strong><br>
视频“自定义报告简介”将引导您完成本章中的信息。<br> <a href="https://www.youtube.com/embed/htwLcXYxBB0" target="_blank" rel="noopener noreferrer">立即观看<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p></blockquote> <h2 id="下载示例解决方案"><a href="#下载示例解决方案" class="header-anchor">#</a> 下载示例解决方案</h2> <p>本章中的说明基于下述下载的示例解决方案。</p> <p><strong>示例解决方案</strong></p> <blockquote><p>主题：报告自定义<br>
时间：15min以内<br>
下载：<a href="https://www.ranorex.com/rx-media/rx-user-guide/latest/download/RxSampleCustomReport.zip" target="_blank" rel="noopener noreferrer">点我下载<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></p></blockquote> <p><strong>安装</strong></p> <ol><li>解压项目目录到你的计算机任一文件夹</li> <li>使用RanorexStudi打开<code>RxDatabase.rxsln</code>解决方案</li></ol> <p><strong>贴士</strong></p> <blockquote><p>示例解决方案适用于Ranorex版本8.0或更高版本。你需要将解决方案自动升级同意到8.2及更高版本的</p></blockquote> <h2 id="从原始数据到报告"><a href="#从原始数据到报告" class="header-anchor">#</a> 从原始数据到报告</h2> <p>下面的图片说明了在报表中以易于阅读的格式显示原始数据的过程。</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000010.png" alt="A9050-0000010"><br> <em>Ranorex报告的概念</em></p> <ol><li>在测试运行期间，报表引擎以XML格式收集数据。</li> <li>接着报表引擎将此数据转换为HTML，并根据CSS和XSL规范创建报表文件。</li> <li>然后，Ranorex Studio可以使用其内置的HTML查看器显示此基于HTML的报告。</li></ol> <h3 id="收集的测试数据"><a href="#收集的测试数据" class="header-anchor">#</a> <strong>收集的测试数据</strong></h3> <p>收集测试运行的数据并以XML格式存储。此原始数据也可以在Ranorex Studio外部使用任何XML查看器/编辑器进行读取和使用。</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000020.png" alt="A9050-0000020"><br> <em>XML格式的测试数据</em></p> <p>原始XML数据总是保存在和对应报告相同的文件夹中，并且具有相同的文件名和添加的后缀<code>.data</code></p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000030.png" alt="A9050-0000030"><br> <em>报告文件和XML数据文件</em></p> <h3 id="css和xsl格式"><a href="#css和xsl格式" class="header-anchor">#</a> <strong>CSS和XSL格式</strong></h3> <p>然后使用原始XML数据创建基于CSS和XSL规范的HTML文件。</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000040.png" alt="A9050-0000040"></p> <p>用于生成HTML文件的XSL和CSS格式也存储在与XML数据和实际报告相同的文件夹中</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000050.png" alt="A9050-0000050"><br> <em>CSS和XSL文件</em></p> <blockquote><p><strong>章节预览</strong><br>
为了能够更改Ranorex标准报告的布局和内容，建议你对HTML，CSS，XSL和XML有基本的了解。 有关详细信息，请参阅<a href="http://www.w3.org/" target="_blank" rel="noopener noreferrer">www.w3.org<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a>上的万维网联盟（W3C）</p></blockquote> <h3 id="html报告文件"><a href="#html报告文件" class="header-anchor">#</a> <strong>HTML报告文件</strong></h3> <p>由XSL和CSS从XML生成的最终报告是基于HTML的格式存储在项目目录的Reports文件夹中。</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000060.png" alt="A9050-0000060"><br> <em>基于html的报告文件和报告显示在Ranorex Studio</em></p> <p><strong>提示</strong></p> <blockquote><ul><li>报告可以在任一Web浏览器中查看</li> <li>报告文件可以在任一HTML编辑器里编辑</li></ul></blockquote> <h2 id="创建一个自定义报告模板"><a href="#创建一个自定义报告模板" class="header-anchor">#</a> 创建一个自定义报告模板</h2> <p>现在我们已经确定了如何生成报告，现在我们可以开始自定义报告了。在Ranorex Studio中有一种方便的方法可以在不影响标准报告的情况下执行此操作：</p> <ol><li>在测试套件视图，<code>右键</code>测试套件</li> <li>点击<code>Properties</code></li> <li>点击<code>Report</code>选项卡</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/F3040-0000010.png" alt="F3040-0000010"></p> <ol start="4"><li>点击<code>Create custom template</code></li> <li>将显示一条消息，告诉你新报告模板文件夹的创建位置，单击确定确认。</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000070.png" alt="A9050-0000070"></p> <h3 id="结果"><a href="#结果" class="header-anchor">#</a> <strong>结果</strong></h3> <p>在项目视图中，在项目视图中，你可以看到包含复制的报告文件的新模板文件夹。</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000080.png" alt="A9050-0000080"><br> <em>项目视图中的NewCustomTemplate1文件夹</em></p> <ol><li>CSS、XSL和图像文件
<ul><li>这些是你更改的复制文件，用于自定义报告的布局和内容</li> <li>PNG文件包含Ranorexlogo作为报告的默认logo以及标准报告中使用的其他图像，你可以用自己的图像替换它们</li></ul></li> <li>预览文件
<ul><li>这些文件使你能够快速检查在实际报告中其他文件中的定制是什么样子的。打开视图，获得预览</li> <li>你也可以从Windows打开它，因此你不必启动Ranorex Studio</li></ul></li></ol> <h2 id="多个自定义报告模板"><a href="#多个自定义报告模板" class="header-anchor">#</a> 多个自定义报告模板</h2> <p>你可以根据需要创建任意数量的自定义报告模板。 但是，测试套件一次只能激活一个模板。要创建其他自定义模板：</p> <ol><li>在测试套件属性的<code>Report</code>选型卡中，点击重置到默认</li> <li>再点击<code>Create custom template</code>并点击<code>OK</code></li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000090.png" alt="A9050-0000090"></p> <h2 id="结果-2"><a href="#结果-2" class="header-anchor">#</a> <strong>结果</strong></h2> <p>另一个模板文件夹出现在项目视图中。</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000091.png" alt="A9050-0000091"><br> <em>多个自定义报告模板的示例</em></p> <h2 id="重命名自定义报告模板"><a href="#重命名自定义报告模板" class="header-anchor">#</a> 重命名自定义报告模板</h2> <p>你可以重命名自定义报告模板</p> <ol><li>在项目视图中，选择你要重命名的模板</li> <li>按下<code>F2</code>可以重命名模板文件夹</li> <li>重命名文件夹</li></ol> <blockquote><p><strong>注意</strong><br>
报告引擎不会自动识别名称更改。重命名后，你必须应用模板。</p></blockquote> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000130.png" alt="A9050-0000130"></p> <p>重命名一个自定义报告模板</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000140.png" alt="A9050-0000140"></p> <p>如果模板没有应用将会报错</p> <h2 id="选择-重新应用报告模板"><a href="#选择-重新应用报告模板" class="header-anchor">#</a> 选择/重新应用报告模板</h2> <p>这个功能有三种用途：</p> <ul><li>在文件夹中添加一个现有的自定义模板</li> <li>如果你有多个自定义模板，选择一个并应用一个使用</li> <li>如果你重命名了一个模板并应用了它，Ranorex可以再次找到它</li></ul> <p><strong>提示</strong></p> <blockquote><p>同一时间，一个测试套件，只有一个报告模板是激活的</p></blockquote> <ol><li>在测试报告属性中打开报告选项卡</li> <li>如果当前有一个自定义模板处于激活状态，单击<code>Reset</code>重置到默认模板</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000100.png" alt="A9050-0000100"></p> <ol start="3"><li>点击<code>Choose custom template</code></li> <li>在浏览视图中选择一个自定义模板</li> <li>点击OK</li></ol> <h2 id="重置到默认报告模板"><a href="#重置到默认报告模板" class="header-anchor">#</a> 重置到默认报告模板</h2> <p>如果你想停止使用自定义模板，你可以随时重置到默认的Ranorex模板。</p> <ol><li>在测试套件属性中的打开报告选项卡</li> <li>点击<code>Reset</code>重置到默认并确认OK</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000110.png" alt="A9050-0000110"></p> <blockquote><p><strong>提示</strong><br>
此操作不会删除自定义报表模板。你仍然可以按照上面一节描述的那样重新应用它们</p></blockquote> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000120.png" alt="A9050-0000120"> <em>Ranorex标准报告模板</em></p> <h2 id="ranorex如何处理自定义模板"><a href="#ranorex如何处理自定义模板" class="header-anchor">#</a> Ranorex如何处理自定义模板</h2> <p>Ranorex有一个特殊的机制来处理定制的报表模板。它涉及到每个项目都有的输出文件夹和报告文件夹。当你想要在报表模板中包含外部文件时，了解这个过程是很重要的，例如包含你标识的PNG，因为这些文件默认情况下不包含在这个过程中。</p> <h3 id="输出文件夹-bin-debug"><a href="#输出文件夹-bin-debug" class="header-anchor">#</a> <strong>输出文件夹</strong>\bin\Debug\</h3> <p>执行测试时，Ranorex Studio会将测试运行所需的所有文件复制到指定的输出文件夹中 叫 \bin\Debug\，它位于项目的文件夹中。这包括作为自定义报告模板的一部分创建的标准文件，但不包括外部文件，例如logo。仅当外部文件配置为输出文件夹时，它们才会复制到输出文件夹，因此默认情况下不会显示在报告中。如何执行此操作将在下一节中介绍。</p> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/A90/A9050-0000150.png" alt="A9050-0000150"><br> <em>Ranorex输出文件夹</em></p> <ol><li><p>在输出文件夹中复制自定义报告模板文件夹（本例中为FrogConsulting）</p></li> <li><p>报告输出文件夹中的文件夹</p></li> <li><p>报告文件（.rxlog）和相应的原始数据文件（.rxlog.data）</p></li> <li><p>CSS和XSL规范文件以及默认logo文件RanorexReport.png</p></li></ol> <p><strong>提示</strong></p> <blockquote><p>Ranorex在每次后续测试运行时同步输出文件夹的所有文件。</p></blockquote> <h3 id="流程摘要"><a href="#流程摘要" class="header-anchor">#</a> <strong>流程摘要</strong></h3> <p>下面的图像和说明说明了该过程。如前所述，外部文件需要特殊配置才能包含在流程中。在这种情况下，我们假设已经完成了。您可以在下面进一步了解如何操作。</p> <p><img src="https://www.ranorex.com/rx-media/rx-user-guide/v9.1/A90/A9050-0000170.png" alt="A9050-0000170"></p> <ol><li><p>自定义报告模板已应用于测试套件。自定义模板的文件夹位于项目的文件夹中，本例中为FrogConsulting。</p></li> <li><p>在第一次测试运行时，自定义模板文件夹将直接复制到项目的输出文件夹中。</p></li> <li><p>报表布局文件（CSS，XSL和自定义文件）也从模板文件夹直接复制到项目输出文件夹中的Reports文件夹。</p></li></ol> <p>在后续运行中，项目文件夹和输出文件夹中的自定义模板文件夹将同步，即输出文件夹始终包含自定义模板文件夹中的最新文件。</p> <h2 id="在报告中包含外部文件"><a href="#在报告中包含外部文件" class="header-anchor">#</a> 在报告中包含外部文件</h2> <p>默认情况下，Ranorex仅在报告过程中包含内部文件（.rxlog，rxlog.data，.css，.xsl），即仅将这些文件复制到输出文件夹。对于要在自定义报告中显示的外部文件（如logo），你需要手动将它们包含在此过程中。</p> <ol><li>将外部文件复制到你希望它们所属的自定义报告模板的文件夹中。</li> <li>在Ranorex Studio的项目视图中，单击刷新按钮以在模板的文件夹中查看该文件。</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000180.png" alt="A9050-0000180"><br> <em>项目文件视图工具栏中的“刷新”按钮</em></p> <ol start="3"><li>右键外部文件</li> <li>点击<code>Include in project</code></li> <li>该文件现在包含在项目中，但我们还没有完成</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000190.png" alt="A9050-0000190"></p> <ol><li>复制到自定义报表文件夹中的任何文件最初都不是项目的一部分，这意味着它们也不包括在报表过程中</li></ol> <p>6.选择外部文件并点击<code>F4</code>打开它的属性</p> <p>7.你可以看到<code>Copy to output folder</code>被设置成<code>Never</code>，因此文件仍然不会包含到报告过程中。将它更改为<code>Always</code>或是<code>Preserve newest</code>。</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000200.png" alt="A9050-0000200"></p> <ol><li><code>Never</code>--是任何新包含的外部文件的默认设置。</li> <li><code>Always</code>--表示文件将被复制到每个测试运行的输出文件夹中。</li> <li><code>Preserve newest</code>--表示只有在<code>/Reports/</code>文件夹中的版本比输出文件夹中的现有版本更新时才会复制该文件。如果输出文件夹中尚不存在任何文件，则始终会复制该文件</li></ol> <h2 id="背景颜色和logo自定义"><a href="#背景颜色和logo自定义" class="header-anchor">#</a> 背景颜色和logo自定义</h2> <p>在此示例中，你将更改报告的背景颜色，并将Ranorex logo替换为自定义logo。该示例可在本章开头下载。</p> <h3 id="logo"><a href="#logo" class="header-anchor">#</a> logo</h3> <ul><li>你的logo不必是特定尺寸，可以尝试不同的尺寸</li> <li>logo中使用的颜色是十六进制值</li></ul> <p>我们准备了一个标志样品。绿色背景有十六进制值：<code>#ACDB6B</code></p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000210.png" alt="A9050-0000210"></p> <p>示例logo已位于FrogConsulting自定义报告模板文件夹中</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000220.png" alt="A9050-0000220"></p> <h3 id="替代logo"><a href="#替代logo" class="header-anchor">#</a> 替代logo</h3> <p>要替换logo，你需要更改CSS文件。</p> <ol><li>在项目视图中，双击CSS规范文件</li> <li>它将在新选项卡中打开</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000230.png" alt="A9050-0000230"></p> <ol start="3"><li>滑到文件的末尾，找到自定义区域</li> <li>删除此行以取消注释自定义部分，然后按如下所述替换其内容</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000240.png" alt="A9050-0000240"></p> <ol><li>背景自定义
<ul><li>背景颜色设置为与logo背景颜色相同的绿色十六进制值</li> <li>所有其他设置都保持不变</li></ul></li> <li>自定义logo
<ul><li>logo的高度和宽度设置为各自的值（请参阅logo大小）</li> <li>默认logo名称将替换为“frogconsulting.png”</li> <li>其他设置保持不变</li></ul></li> <li>报告信息框对齐方式
<ul><li>最后，为一般信息框设置了40px的上边距</li></ul></li></ol> <h3 id="结果-3"><a href="#结果-3" class="header-anchor">#</a> 结果</h3> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000250.png" alt="A9050-0000250"></p> <p><strong>提示</strong></p> <blockquote><p>如果报告中缺少logo，请记住在项目和报告过程中包含logo文件，如上所述</p></blockquote> <h2 id="用用户名替换计算机-端点"><a href="#用用户名替换计算机-端点" class="header-anchor">#</a> 用用户名替换计算机/端点</h2> <p>还有各种更改报告内容的选项。我们将通过三个示例介绍基本原理，并根据你自己的想法帮助你自定义报告。在第一个示例中，你将自定义报告，以便“计算机/端点”条目显示“用户名”，而不是计算机名称显示用户名。</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000260.png" alt="A9050-0000260"><br> <em>用用户名替换计算机/端点</em></p> <ol><li>XSL文件中定义条目标题的行。</li> <li>原始数据文件中的“主机”行。 它包含实际的计算机/端点名称。</li> <li>XSL文件中的行，它从原始数据文件中的“主机”行获取计算机/端点名称，并将其显示在报告中的“计算机/端点”条目下方。</li></ol> <p>要用“用户名”替换“计算机/端点”条目并显示用户名：</p> <ol><li>在XSL文件中，使用&quot;Frog user&quot;替代&quot;计算机/端点&quot;</li> <li>也可以在XSL文件中，使用@user替换@host变量</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000270.png" alt="A9050-0000270"><br> <em>报告用户名自定义</em></p> <ol start="3"><li>保存关闭文件</li></ol> <h3 id="结果-4"><a href="#结果-4" class="header-anchor">#</a> <strong>结果</strong></h3> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000280.png" alt="A9050-0000280"><br> <em>自定义用户名的报告</em></p> <h2 id="更改报告消息格式"><a href="#更改报告消息格式" class="header-anchor">#</a> 更改报告消息格式</h2> <p>在此示例中，你将更改特定类型的报告消息的格式。</p> <p>如下图所示，在默认报告中，具有“成功”级别的消息以绿色字体打印。我们将其更改为粗体蓝色字体。</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000290.png" alt="A9050-0000290"></p> <h4 id="_1-默认成功的信息绿色的"><a href="#_1-默认成功的信息绿色的" class="header-anchor">#</a> 1. 默认成功的信息绿色的</h4> <ol><li>打开CSS文件</li> <li>找到成功消息的颜色定义并复制它</li> <li>将其粘贴到CSS文件末尾的定制部分，并像在图像中一样修改它</li> <li>保存并关闭文件</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000300.png" alt="A9050-0000300"></p> <h5 id="_2-成功消息的默认字体颜色定义"><a href="#_2-成功消息的默认字体颜色定义" class="header-anchor">#</a> 2. 成功消息的默认字体颜色定义</h5> <h5 id="_3-自定义部分中的新颜色定义-覆盖默认定义。"><a href="#_3-自定义部分中的新颜色定义-覆盖默认定义。" class="header-anchor">#</a> 3. 自定义部分中的新颜色定义，覆盖默认定义。</h5> <p><strong>提示</strong></p> <blockquote><p>不要更改默认定义（CSS行＃197 - ＃199）,这样，你就可以轻松恢复默认值。</p></blockquote> <h3 id="结果-5"><a href="#结果-5" class="header-anchor">#</a> 结果</h3> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000310.png" alt="A9050-0000310"></p> <h2 id="从报告中删除信息"><a href="#从报告中删除信息" class="header-anchor">#</a> 从报告中删除信息</h2> <p>在本例中，你将从报表中删除信息。当某些内容不相关并且你想在报告中释放空间时，这是非常有用的。</p> <p>在我们的示例中，我们希望删除报表消息的Time列</p> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000320.png" alt="A9050-0000320"></p> <ol><li>打开XSL文件</li> <li>找到文件中所有<code>Time</code>的实例</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000330.png" alt="A9050-0000330"></p> <h4 id="_1-这些行定义了xsl文件中的time列。"><a href="#_1-这些行定义了xsl文件中的time列。" class="header-anchor">#</a> 1. 这些行定义了XSL文件中的Time列。</h4> <ol start="3"><li>通过如下注释来停用所有这些</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000340.png" alt="A9050-0000340"></p> <h4 id="_2-此代码获取每个操作行的时间值-并将它们显示在正确的位置。"><a href="#_2-此代码获取每个操作行的时间值-并将它们显示在正确的位置。" class="header-anchor">#</a> 2. 此代码获取每个操作行的时间值，并将它们显示在正确的位置。</h4> <ol start="4"><li>通过如下注释将其取消激活</li></ol> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000350.png" alt="A9050-0000350"></p> <h3 id="结果-6"><a href="#结果-6" class="header-anchor">#</a> <strong>结果</strong></h3> <p><img src="https://gitee.com/taylortaurus/RX_UserGuide_GitBook_Picbed/raw/master/Reporting/A9050-0000360.png" alt="A9050-0000360"><br> <em>自定义报告没有时间列</em></p> <hr></div></div> <div class="page-slot page-slot-bottom"><!-- 横向自适应 -->
      <ins class="adsbygoogle"
          style="display:block"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="6620245489"
          data-ad-format="auto"
          data-full-width-responsive="true"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script></div> <div class="page-edit"><!----> <!----> <div class="last-updated"><span class="prefix">上次更新:</span> <span class="time">11/26/2021, 2:14:10 PM</span></div></div> <div class="page-nav-wapper"><div class="page-nav-centre-wrap"><a href="/ranorex/pages/6ba9cb/" class="page-nav-centre page-nav-centre-prev"><div class="tooltip">Ranorex标准报告</div></a> <a href="/ranorex/pages/7cbc3f/" class="page-nav-centre page-nav-centre-next"><div class="tooltip">复杂的自定义</div></a></div> <div class="page-nav"><p class="inner"><span class="prev">
        ←
        <a href="/ranorex/pages/6ba9cb/" class="prev">Ranorex标准报告</a></span> <span class="next"><a href="/ranorex/pages/7cbc3f/">复杂的自定义</a>→
      </span></p></div></div></div> <div class="article-list"><div class="article-title"><a href="/ranorex/archives/" class="iconfont icon-bi">最近更新</a></div> <div class="article-wrapper"><dl><dd>01</dd> <dt><a href="/ranorex/pages/93ab6d/"><div>介绍</div></a> <span>11-22</span></dt></dl><dl><dd>02</dd> <dt><a href="/ranorex/pages/efb1ea/"><div>解决元素未找到错误</div></a> <span>11-22</span></dt></dl><dl><dd>03</dd> <dt><a href="/ranorex/pages/9be76e/"><div>添加解决方案设置到解决方案</div></a> <span>11-22</span></dt></dl> <dl><dd></dd> <dt><a href="/ranorex/archives/" class="more">更多文章&gt;</a></dt></dl></div></div></main></div> <div class="footer"><!----> 
  Theme by
  <a href="https://github.com/xugaoyi/vuepress-theme-vdoing" target="_blank" title="本站主题">Vdoing</a> 
    | Copyright © 2021-2021
    <span></span></div> <div class="buttons"><div title="返回顶部" class="button blur go-to-top iconfont icon-fanhuidingbu" style="display:none;"></div> <div title="去评论" class="button blur go-to-comment iconfont icon-pinglun" style="display:none;"></div> <div title="主题模式" class="button blur theme-mode-but iconfont icon-zhuti"><ul class="select-box" style="display:none;"><li class="iconfont icon-zidong">
          跟随系统
        </li><li class="iconfont icon-rijianmoshi">
          浅色模式
        </li><li class="iconfont icon-yejianmoshi">
          深色模式
        </li><li class="iconfont icon-yuedu">
          阅读模式
        </li></ul></div></div> <!----> <!----> <div class="custom-html-window custom-html-window-rb" style="display:;"><div class="custom-wrapper"><i class="close-but">×</i> <div><!-- 固定160*160px -->
      <ins class="adsbygoogle"
          style="display:inline-block;max-width:160px;max-height:160px"
          data-ad-client="ca-pub-7828333725993554"
          data-ad-slot="8377369658"></ins>
      <script>
          (adsbygoogle = window.adsbygoogle || []).push({});
      </script>
      </div></div></div></div><div class="global-ui"><div></div></div></div>
    <script src="/ranorex/assets/js/app.24b7eaa5.js" defer></script><script src="/ranorex/assets/js/2.ec9fdd2b.js" defer></script><script src="/ranorex/assets/js/56.e54f166f.js" defer></script>
  </body>
</html>
